import axios from 'axios'

const payHttp = axios.create({
  baseURL: '/pay',
  timeout: 10000,
})

axios.interceptors.request.use(
  (config) => {
    return config
  },
  (error) => {
    return Promise.reject(error)
  }
)

axios.interceptors.response.use(
  (response) => {
    response
  },
  (error) => {
    return Promise.reject(error)
  }
)

export default payHttp
